<!-- Main Content -->
<div id="content">
	<div id="main">
          <h1>Bienvenido, <span><?php echo $this->administrador->nombre ; ?></span>!</h1>
	   <p><?php echo $this->titulo ; ?></p>
           <!-- fullwidth / normal -->
           <table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
		<thead>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Id</td>
                        <td>Nombre</td>
                        <td>Apellido</td>
                        <td>Email</td>
                        <td>Nivel</td>
                        <td>Acciones</td>
                    </tr>
		</thead>
                <tbody>
                 <?php $e=0; ?>
                 <?php foreach($this->administradores as $administrador) : $e++; ?>

                    <?php if($e % 2 == 0) : ?>

                    <tr class="odd">
                        <td>&nbsp;</td>
                        <td><?php echo $administrador->id; ?></td>
                        <td><?php echo $administrador->nombre; ?></td>
                        <td><?php echo $administrador->apellido; ?></td>
                        <td><?php echo $administrador->correo; ?></td>
                        <td><?php echo $administrador->nivel; ?></td>
                         <td>
                            <ul id="icons" class="ui-widget ui-helper-clearfix">
                               <li class="ui-state-default ui-corner-all" title="Editar">
                                   <a href="<?php echo $this->url(array('controller'=>'administrador','action'=>'editar','id'=>$administrador->id));?>"><span class="ui-icon ui-icon-pencil"></span></a>
                               </li>
                               <li class="ui-state-default ui-corner-all" title="Eliminar">
                                   <a href="javascript:confirmDelete('<?php echo $this->url(array('controller'=>'administrador','action'=>'eliminar','id'=>$administrador->id)); ?>','administrador')"><span class="ui-icon ui-icon-circle-close"></span></a>
                               </li>
                            </ul>
                         </td>
                    </tr>

                    <?php else : ?>

                    <tr>
                        <td>&nbsp;</td>
                        <td><?php echo $administrador->id; ?></td>
                        <td><?php echo $administrador->nombre; ?></td>
                        <td><?php echo $administrador->apellido; ?></td>
                        <td><?php echo $administrador->correo; ?></td>
                        <td><?php echo $administrador->nivel; ?></td>
                         <td>
                            <ul id="icons" class="ui-widget ui-helper-clearfix">
                               <li class="ui-state-default ui-corner-all" title="Editar">
                                   <a href="<?php echo $this->url(array('controller'=>'administrador','action'=>'editar','id'=>$administrador->id));?>"><span class="ui-icon ui-icon-pencil"></span></a>
                               </li>
                               <li class="ui-state-default ui-corner-all" title="Eliminar">
                                   <a href="javascript:confirmDelete('<?php echo $this->url(array('controller'=>'administrador','action'=>'eliminar','id'=>$administrador->id)); ?>','administrador')"><span class="ui-icon ui-icon-circle-close"></span></a>
                               </li>
                            </ul>
                         </td>
                    </tr>
                    
                    <?php endif; ?>

                 <?php endforeach; ?>

                </tbody>
    </table>

   </div>
</div>